package com.lemon.exam.common.entity.dto;

import jakarta.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

/**
 * 修改密码数据传输对象
 *
 * @author Lemon
 * @since 2025/4/24 10:47
 */
public record ChangePasswordDTO(
        @NotBlank(message = "旧密码不能为空") String oldPassword,
        @NotBlank(message = "新密码不能为空") @Length(min = 6, message = "请输入6位以上的密码") String newPassword,
        @NotBlank(message = "确认密码不能为空") String confirmPassword
) {
}
